package com.njwb.controller;

import com.njwb.json.ResponseResult;
import com.njwb.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @GetMapping("user")
    public ResponseResult findById(){
        User user = new User();
        user.setId(1);
        user.setUsername("James");
        user.setPassword("7003");
        return ResponseResult.success(user);
    }
}
